//
//  LEHeader.h
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/9.
//  Copyright © 2017年 DFH. All rights reserved.
//

#ifndef LEHeader_h
#define LEHeader_h


#endif /* LEHeader_h */

#ifdef DEBUG
#define ZDLog(...) NSLog(__VA_ARGS__)
#else
#define ZDLog(...)
#endif

//定义一个打印函数的常量
#define funcLog ZDLog(@"%s",__func__)

/*
 一.关于颜色
 
 */
#define LERGBColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define LEHaxColor(f) [UIColor colorWithRed:(((f) >> 16) & 0x0000ff) / 255.0 green:(((f) >> 8) & 0x0000ff) / 255.0 blue:(((f)) & 0x0000ff) / 255.0 alpha:1.0]

#define LEHaxColorWithAlpha(f,a) [UIColor colorWithRed:(((f) >> 16) & 0x0000ff) / 255.0 green:(((f) >> 8) & 0x0000ff) / 255.0 blue:(((f)) & 0x0000ff) / 255.0 alpha:a]

#define LEDefaultColor LEHaxColor(0x1b82d2)
#define randomColor LERGBColor((arc4random_uniform(256)),(arc4random_uniform(256)),(arc4random_uniform(256)))
//蓝色
#define NavigationBlueColor LEHaxColor(0x1082dd)
//线的颜色
#define LELineColor LEHaxColor(0xe1e1e1)
//背景色
#define LEBackgroundColor LEHaxColor(0xf1f1f1)

//红色
#define LERedColor LEHaxColor(0xff0000)
//紫色
#define LEPurpleColor LEHaxColor(0x8a2be2)
//浅蓝
#define LEShadowBlueColor LEHaxColor(0x6495ed)
//浅黄
#define LEShadowYellowColor LEHaxColor(0xffa500)
//橘色
#define LEOrangeColor LEHaxColor(0xff8901)

/*
 二. 尺寸
 
 */
#define LEScreenWidth [UIScreen mainScreen].bounds.size.width
#define LEScreenHeight [UIScreen mainScreen].bounds.size.height
#define statusBarH [[UIApplication sharedApplication] statusBarFrame].size.height
#define navigationBarH 44
#define homeBarH 43
#define margin 10
#define leftMargin 15

#define iPhone6W 375.0
#define iPhone6H 667.0

#define ScaleX LEScreenWidth / iPhone6W
#define ScaleY LEScreenHeight / iPhone6H

#define LineX(l) l*ScaleX
#define LineY(l) l*ScaleY
#define Font(x) [UIFont systemFontOfSize:x*ScaleX]

//2.2 类导航 header 等高度
#define BackGoodsDeatailHeaderH 244
#define SectionHeader 65
#define pageTitleViewH 44

/*
 三: 全局文字
 */
#define CoLEonFont [UIFont systemFontOfSize:17]
#define SmallFont [UIFont systemFontOfSize:15]
#define LittleFont [UIFont systemFontOfSize:13]

/*
 四:  appkey
*/
//友盟 appkey
#define USHARE_APPKEY @"5919797e5312ddbf8b0018af"
//SMS
#define SMS_APP_KEY @"1db7292d5ff36"
#define SMS_APP_SECRET @"dffca8be4a8e9d1c260c559c775e2b23"
//JPush
#define JPush_APP_KEY @"d39760f05d211ef96ff35cbc"
#define JPush_Master_Secret @"211e94fd985fa256a88fc714"
//高德地图
#define GAODE_APPKEY @"f75c0e5b64255c95abb20509fe1b9ef5"

/*
 五:  存储常量
 */
//老人账户信息
#define OLDMAN_INFO @"oldMan_info"
//是否登录了
#define ISLOGIN @"islogin"
//经纬度
#define LOCATION_LAT @"lat"
#define LOCATION_LONG @"long"

/*
 六:  通知常量
 */
//选择距离
#define SELECT_DISTANCE_NOTIFICATION @"select_distance"
//选择支付方式
#define SELECT_PAYTYPE @"payType"
//选择省份
#define SELECT_CITY_NOTIFICATION @"select_city"
//选择地址
#define SELECT_ADDRESS_NOTIFICATION @"select_address"
//新建地址
#define NEW_ADDRESS_NOTIFICATION @"new_address"
//支付成功
#define PAY_SUCCESS_NOTIFICATION @"pay_success"
//评论成功
#define COMMIT_SUCCESS_NOTIFICATION @"commit_success"
//评论成功
#define LOGIN_OTHERDEVICE_NOTIFICATION @"login_otherDevice"

/*
 六: 路径
*/
#define RootUrl @"http://223.99.19.179:81/shop_tz/mobile/index.php?"
//登录
#define LoginUrl [NSString stringWithFormat:@"%@act=login&op=index",RootUrl]
//忘记密码
#define LoginForgetPasswordUrl [NSString stringWithFormat:@"%@act=password_back&op=store_back",RootUrl]
//注册极光
#define RegisterJPushUrl [NSString stringWithFormat:@"%@act=store_order&op=store_edit",RootUrl]



//首页-服务
#define MainGetServiceList [NSString stringWithFormat:@"%@act=goods_class",RootUrl]
//首页-搜索
#define MainSearchListUrl [NSString stringWithFormat:@"%@act=member_search&op=index",RootUrl]
//首页-商家列表
//&gc_id=2821&distance=10000&lat=36.67937&lng=117.133311
#define ServiceStoreListUrl [NSString stringWithFormat:@"%@act=store&op=nearby_store_list",RootUrl]
//商家详情
#define ServiceStoreDetialUrl [NSString stringWithFormat:@"%@act=goods&op=goods_list",RootUrl]
//商品详情
#define ServiceGoodsDetialUrl [NSString stringWithFormat:@"%@act=goods&op=goods_detail",RootUrl]
//商品的评价列表
#define GoodsCommitListUrl [NSString stringWithFormat:@"%@act=goods&op=goods_evaluate",RootUrl]
//加入购物车
#define AddShopCarUrl [NSString stringWithFormat:@"%@act=member_cart&op=cart_add",RootUrl]
//首页-购物车列表
#define ShoppCarListUrl [NSString stringWithFormat:@"%@act=member_cart&op=cart_list",RootUrl]
//首页-删除购物车的商品
#define DeleteShopCarUrl [NSString stringWithFormat:@"%@act=member_cart&op=cart_del",RootUrl]
//首页购物车-修改商品数量
#define EditShoppCarGoodsNumberUrl [NSString stringWithFormat:@"%@act=member_cart&op=cart_edit_quantity",RootUrl]
//首页-订单中心
#define OrderCenterListUrl [NSString stringWithFormat:@"%@act=member_order&op=order_list",RootUrl]
//首页-取消订单order_id key Post
#define CancelOrderUrl [NSString stringWithFormat:@"%@act=member_order&op=order_cancel",RootUrl]

//未支付订单中--去支付
#define WaitPayGoPayUrl [NSString stringWithFormat:@"%@act=member_payment&op=pay",RootUrl]

//首页-我的钱包
#define MyWalletUrl [NSString stringWithFormat:@"%@act=service_order&op=card_consumption",RootUrl]
//获取健康信息act=member_index&op=member_handle
#define HealthyMessageUrl [NSString stringWithFormat:@"%@act=member_index&op=member_handle",RootUrl]
//修改密码
#define EditPasswordUrl [NSString stringWithFormat:@"%@act=logout&op=password_edit",RootUrl]

//收货地址列表
#define AddressListUrl [NSString stringWithFormat:@"%@act=member_address&op=address_list",RootUrl]
//删除收货地址
#define DeleteAddressUrl [NSString stringWithFormat:@"%@act=member_address&op=address_del",RootUrl]
//增加收货地址
#define AddAddressUrl [NSString stringWithFormat:@"%@act=member_address&op=address_add",RootUrl]

//去支付
#define PayMoneyUrl [NSString stringWithFormat:@"%@act=member_buy&op=buy_step2",RootUrl]

//评价的 URL
#define submitCommitUrl [NSString stringWithFormat:@"%@act=member_order&op=add_evaluate",RootUrl]

